package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiU_message;
import cn.com.api.mapper.base.U_messageMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_messageMapper extends U_messageMapperBase {

	// 新增对象后返回记录ID
	public int U_messageInsertion(ApiU_message u_message);

	// 根据Map查询
	public List<ApiU_message> findU_messagesByMapListPage(@Param("map") Map map, @Param("page") PageInfo page);

	// 批量插入数据
	public void insertmessageList(List<ApiU_message> messagelist);

	// 查看
	public List<ApiU_message> findCircleMessagesByMapListPage(@Param("map") Map<String, Object> params,
			@Param("page") PageInfo page);

	public List<ApiU_message> findMessagesListPage(@Param("map") Map<String, Object> params,
			@Param("page") PageInfo page);

	// 查看交易信息
	public List<ApiU_message> findOrderMessagesListPage(@Param("map") Map<String, Object> params,
			@Param("page") PageInfo page);

	// 查看物流相关信息
	public List<ApiU_message> findLogisticsMessagesListPage(@Param("map") Map<String, Object> params,
			@Param("page") PageInfo page);

	//
	public ApiU_message findMessagesByMap(Map<String, Object> map);
	
	//删除
	public int deleteU_message(@Param("message_id") Integer id);

}
